package cn.zn.modules.member.service.impl;

import cn.zn.framework.common.utils.PageInUtils;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.zn.framework.common.utils.PageUtils;

import cn.zn.modules.member.dao.MemberLevelRuleDao;
import cn.zn.modules.member.entity.MemberLevelRuleEntity;
import cn.zn.modules.member.service.MemberLevelRuleService;


@Service("memberLevelRuleService")
public class MemberLevelRuleServiceImpl extends ServiceImpl<MemberLevelRuleDao, MemberLevelRuleEntity> implements MemberLevelRuleService {

    @Override
    public PageUtils queryPage(PageInUtils<MemberLevelRuleEntity> pageIn) {
        MemberLevelRuleEntity entity = pageIn.getEntity();
        QueryWrapper<MemberLevelRuleEntity> memberLevelRuleQueryWrapper = Wrappers.query();
        if(entity != null){
            // 设置查询条件
        }
        IPage<MemberLevelRuleEntity> pageResult = this.page(pageIn.getPageObj(), memberLevelRuleQueryWrapper);
        return new PageUtils(pageResult);
    }

}